<%-- 
    Document   : AdminiFeedBack
    Created on : Aug 8, 2012, 10:31:48 PM
    Author     : Administrator
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="/WEB-INF/taglib139.tld" prefix="pg" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Events</title>
        <link type="text/css" href="CSS/humanity/jquery-ui-1.8.17.custom.css" rel="stylesheet" />
        <link type="text/css" href="CSS/Style.css" rel="stylesheet" />
        <script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
        <script type="text/javascript" src="js/jquery-ui-1.8.17.custom.min.js"></script>


    </head>
    <body>
        <div id="main"><!-- start header -->
            <div id="header">
                <div id="logo">
                    <img style="border: none;" src="images/logo1.png" alt=""/>
                </div>
                <div id="menu">
                    <ul><li><a href="AdminAdministrator.jsp">Administrator</a></li>
                        <li><a href="AdminCustomer.jsp">Customer</a></li>
                        <li><a href="AdminEvents.jsp">Events</a></li>
                        <li><a href="AdminEventCustomer.jsp">Event Customer</a></li>
                        <li><a href="AdminStatistic.jsp">Statistic</a></li>
                        <li><a href="#">About</a></li>
                    </ul>
                </div>
                <!-- end header -->
            </div>
            <!-- start page -->
            <div id="top"></div>
            <div id="page">
                <!-- start sidebar two -->
                <div id="sidebar2" class="sidebar">
                    <jsp:include page="temp/login2.jsp" />
                </div>
                <!-- end sidebar two -->
                <!-- start content -->
                <div id="content">
                    <%
                        String user = (String) session.getAttribute("aha");
                        if (user == null) {
                            response.sendRedirect("Logout.jsp");
                        }
                    %>
                    <div class="entry">
                        <div id="header2" >Management FeedBack</div>
                        <div align="right">
                            <form action="Controllers" method="post">
                                <label style="width:90px;height:25px;font-size:18px">Search Code:&nbsp;</label><input type="text" name="txtCode" style="width:170px;height:25px" />
                                <input type="submit" name="btAction" value="SearchFeed" style="width:70px;height:28px"/>

                            </form>
                        </div>
                        <br/>
                        <hr/>
                        <br/>
                        <table  style="width:100%">
                            <tr id="rowTable">
                                <th>Code</th>
                                <th>Name Customer</th>
                                <th>Code Event</th>
                                <th>Content</th>
                                <th>Date</th>
                            </tr>

                            <c:if test="${empty requestScope.ff}">
                                <pg:paging pageSize="10">
                                    <jsp:useBean id="FeedBack" class="Models.adapterFeedBack"></jsp:useBean>
                                    <c:forEach items="${FeedBack.allFeedBack}" var="f">
                                        <pg:item>
                                            <tr id="rowTable">
                                                <th>${f.codeFeeback}</th>
                                                <th>${f.userCustomer}</th>
                                                <th>${f.event.codeEvent}</th>
                                                <th>${f.contents}</th>
                                                <th>${f.date}</th>
                                            </tr>
                                        </pg:item>
                                    </c:forEach>

                                    <pg:index>
                                        <pg:page><%=thisPage%></pg:page>
                                        <pg:firstPage>[First]</pg:firstPage>
                                        <pg:lastPage>[Last]</pg:lastPage>
                                    </pg:index>
                                </pg:paging>
                            </c:if>
                           <c:if test="${not empty requestScope.ff}">
                                <pg:paging pageSize="10">
                                    <c:forEach items="${requestScope.ff}" var="f">
                                        <pg:item>
                                            <tr id="rowTable">
                                                <th>${f.codeFeeback}</th>
                                                <th>${f.userCustomer}</th>
                                                <th>${f.event.codeEvent}</th>
                                                <th>${f.contents}</th>
                                                <th>${f.date}</th>
                                            </tr>
                                        </pg:item>
                                    </c:forEach>

                                    <pg:index>
                                        <pg:page><%=thisPage%></pg:page>
                                        <pg:firstPage>[First]</pg:firstPage>
                                        <pg:lastPage>[Last]</pg:lastPage>
                                    </pg:index>
                                </pg:paging>
                            </c:if>             
                        </table>

                    </div>
                </div>
                <!-- end content -->

                <div style="clear: both;">&nbsp;</div>

            </div>
            <div id="bottom"></div>
            <!-- end page -->
            <!-- start footer -->
            <div id="footer">
                <p>Copyright ; 2012. <a href="#">Group</a> | <a href="#">Blue_Pumpkin </a> | <a href="" title=""><abbr title="Language">JSP and Servlet</abbr></a> | <a href="" title=""><abbr title="">CSS</abbr></a></p>
                <p>Design by <!-- Do not Remove -->
                    <a href="" title="FPT - Aptech"></a>
                    <!--End of notice -->
                </p>
            </div>
        </div>
        <!-- end footer -->
    </body>
</html>
